INSERT TBL_DATE_BUSINESS
select max(BUSINESS_DATE) as date_data, 'TBL_SALE_CONTEST_BIL_AWARD_RAW' from TBL_SALE_CONTEST_BIL_AWARD_RAW

--update TBL_DATE_BUSINESS
--set name_table = 'TBL_KPI_MSBO_RAW'
--where name_table = 'tbl_KPI_msbo_raw'

select * from tbl_date_business


--delete FROM TBL_DATE_BUSINESS where id = 4

select * from TBL_X_SELLING_CUSTOMER


 delete from  [SERVER12].[SMECustomer360].dbo.tbl_date_business

insert [SERVER12].[SMECustomer360].dbo.tbl_date_business
select * from tbl_date_business

select * from TBL_CM_CARD where DAO_CIF = '12708'


select * from TBL_CUSTOMER where DAO = '12708'